package org.rency.common.redis.service.impl;

import javax.annotation.Resource;

import org.springframework.data.redis.core.ListOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.SetOperations;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.data.redis.core.ZSetOperations;

public abstract class AbstractRedisTemplate<K, V> {
	
	@Resource(name="redisTemplate")
	private RedisTemplate<K, V> redisTemplate;
	
	@Resource(name="redisTemplate")
	private ListOperations<K, V> listOps;
	
	@Resource(name="redisTemplate")
	private ValueOperations<K, V> valueOps;
	
	@Resource(name="redisTemplate")
    private SetOperations<K, V> setOps;
    
	@Resource(name="redisTemplate")
    private ZSetOperations<K, V> zSetOps;

	public RedisTemplate<K, V> getRedisTemplate() {
		return redisTemplate;
	}

	public ListOperations<K, V> getListOps() {
		return listOps;
	}

	public ValueOperations<K, V> getValueOps() {
		return valueOps;
	}

	public SetOperations<K, V> getSetOps() {
		return setOps;
	}

	public ZSetOperations<K, V> getzSetOps() {
		return zSetOps;
	}

}